<?php 

namespace app\common\validate\salary;

use think\Validate;

class SalaryMain extends Validate 
{ 
    protected $rule = [
        'uid' => 'require',
        'price' => 'require',
        'work_day_num' => 'require',
        'year_month' => 'require',
    ];

    protected $message = [
        'uid.require' => '请输入用户ID',
        'price.require' => '请输入底薪(月)',
        'work_day_num.require' => '请输入上班天数',
        'year_month.require' => '请输入年/月份',
    ];

    protected $scene = [
        'edit' => ['uid','price','full_attendance_price','work_year_price','work_day_num','cut_price','overtime_price','absence_duty_price','late_price','leave_early_price','remark','year_month','admin_name','id'],
        'add' => ['uid','price','full_attendance_price','work_year_price','work_day_num','cut_price','overtime_price','absence_duty_price','late_price','leave_early_price','remark','year_month','admin_name'],
    ];

} 
